<template>
  <div>
    <h3>这是父组件</h3>
    <p>-------------------</p>
    <!-- <Son v-model="num" /> -->
    <!-- <son :value="num" @input="val=>num=val" /> -->
    <son :a.sync="num" :b.sync="num2" />
    <!-- <son
      :a="num"
      :b="num2"
      @update:a="val=>num=val"
      @update:b="val=>num2=val"
    /> -->
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
  components: {
    Son
  },
  data() {
    return {
      num: 100,
      num2: 200
    }
  }
}
</script>

<style>

</style>
